Home
last modified time | relevance | path

Searched hist:"725721 a6506eea53bfde81a34e91a06d6162c216" (Results 1 – 2 of 2) sorted by path

/linux/include/uapi/linux/
H A Dbpf.hdiff 725721a6506eea53bfde81a34e91a06d6162c216 Mon Apr 15 11:54:55 CEST 2019 Viet Hoang Tran <hoang.tran@uclouvain.be> bpf: allow clearing all sock_ops callback flags

The helper function bpf_sock_ops_cb_flags_set() can be used to both
set and clear the sock_ops callback flags. However, its current
behavior is not consistent. BPF program may clear a flag if more than
one were set, or replace a flag with another one, but cannot clear all
flags.

This patch also updates the documentation to clarify the ability to
clear flags of this helper function.

Signed-off-by: Hoang Tran <hoang.tran@uclouvain.be>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
/linux/net/core/
H A Dfilter.cdiff 725721a6506eea53bfde81a34e91a06d6162c216 Mon Apr 15 11:54:55 CEST 2019 Viet Hoang Tran <hoang.tran@uclouvain.be> bpf: allow clearing all sock_ops callback flags

The helper function bpf_sock_ops_cb_flags_set() can be used to both
set and clear the sock_ops callback flags. However, its current
behavior is not consistent. BPF program may clear a flag if more than
one were set, or replace a flag with another one, but cannot clear all
flags.

This patch also updates the documentation to clarify the ability to
clear flags of this helper function.

Signed-off-by: Hoang Tran <hoang.tran@uclouvain.be>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>